<include file="Public:header" />
<div class="headbar clearfix">
    <div class="position"><span>配置</span><span>></span><span>网站配置</span></div>
    <ul class="tab" name="menu1">
        <li id="li_1" class="selected"><a href="javascript:void(0);" onclick="javascript:select_tab(1)">网站配置</a></li>
        <li id="li_2"><a href="javascript:void(0);" onclick="javascript:select_tab(2)">底部导航</a></li>
    </ul>
</div>

<div class="content_box">
    <div class="content form_content">
        <form action="{:U('Set/edit')}" name="goodsForm" method="post" enctype="multipart/form-data">
            <input type="hidden" name="id" value="{$set.id}" />

            <div id="table_box_1">
                <table class="form_table">
                    <col width="150px" />
                    <col />
                    <tr>
                        <th>公司名称：</th>
                        <td>
                            <input class="normal" name="name" type="text" value="{$set.name}" alt="" /><label>前台显示名称</label>
                        </td>
                    </tr>
                    <tr>
                        <th>首次查询显示内容：</th>
                        <td><textarea name="message1" style="width:600px;height:200px;">{$set.message1}</textarea></td>
                    </tr>
                    <tr>
                        <th>二次查询显示内容：</th>
                        <td><textarea name="message2" style="width:600px;height:200px;">{$set.message2}</textarea></td>
                    </tr>
                    <tr>
                        <th>多次查询显示内容：</th>
                        <td><textarea name="message3" style="width:600px;height:200px;">{$set.message3}</textarea></td>
                    </tr>
                    <tr>
                        <th>咨询电话：</th>
                        <td>
                            <input class="normal" name="tel" type="text" value="{$set.tel}" alt="" />
                        </td>
                    </tr>
                </table>
            </div>

            <div id="table_box_2" cellpadding="0" cellspacing="0" style="display:none">
                <table class="form_table">
                    <colgroup>
                        <col width="300px" />
                        <col />
                    </colgroup>
                    <tr>
                        <th><input class="normal" name="nav1" type="text" value="{$set.nav1}" alt="" /></th>
                        <td><textarea name="nav1_value" style="width:600px;height:200px;">{$set.nav1_value}</textarea></td>
                    </tr>
                    <tr>
                        <th><input class="normal" name="nav2" type="text" value="{$set.nav2}" alt="" /></th>
                        <td><textarea name="nav2_value" style="width:600px;height:200px;">{$set.nav2_value}</textarea></td>
                    </tr>
                    <tr>
                        <th><input class="normal" name="nav3" type="text" value="{$set.nav3}" alt="" /></th>
                        <td><textarea name="nav3_value" style="width:600px;height:200px;">{$set.nav3_value}</textarea></td>
                    </tr>
                </table>
            </div>

            <table class="form_table">
                <col width="150px" />
                <col />
                <tr>
                    <td></td>
                    <td><button class="submit" type="submit" ><span>确认</span></button></td>
                </tr>
            </table>
        </form>
    </div>
</div>

<script language="javascript">

    //tab标签切换
    function select_tab(curr_tab)
    {
        $("form[name='goodsForm'] > div").hide();
        $("#table_box_"+curr_tab).show();
        $("ul[name=menu1] > li").removeClass('selected');
        $('#li_'+curr_tab).addClass('selected');
    }
</script>
<include file="Public:footer" />